package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author : changkong
 * @date : 2022/1/7
 */
@Data
@Builder
@Schema
@NoArgsConstructor
@AllArgsConstructor
public class SaveNewDimColRequest {

    @NotNull
    @Schema(description = "主题id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long themeId;

    @NotEmpty
    @Schema(description = "维度列名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dimColName;

    @NotNull
    @Range(min = 0, max = Integer.MAX_VALUE)
    @Schema(title = "当前索引列", requiredMode = Schema.RequiredMode.REQUIRED, description = "在当前位置往左新增索引列")
    private Integer curColIndex;

    @Schema(title = "绑定的模型id", requiredMode = Schema.RequiredMode.REQUIRED, description = "绑定的模型id")
    private Long modelId;
    //  @NotNull
    //  @Schema(description = "插入位置", requiredMode = Schema.RequiredMode.REQUIRED, notes = "-1为在左侧新增, 1为右侧新增")
    //  private Integer direction;
}
